package com.putable.nmc.dmv;

import com.putable.nmc.world.World;
import com.putable.pqueue.PQueue;

/**
 * 
 * @author Todd
 *
 * Used to initialize the DMV and add all of the staff
 */
public class DMVDriver {
	
	/**
	 * Initialized the DMV by adding all the staff
	 * @param world The world the DMV is in
	 * @param pq The Priority Queue for this world
	 * @param cl The Customer Line for the DMV
	 */
	public void initialize(World world, PQueue pq, CustomerLine cl){
		for(int i = 0; i < world.getManagers(); i++){
			new Manager(pq, world);
		}
		for(int i = 0; i < world.getBadTellers(); i ++){
			BadTeller bt = new BadTeller(pq);
			bt.setNumManagers(world.getManagers());
		}
		for(int i = 0; i < world.getGoodTellers(); i ++){
			new GoodTeller(pq, cl);
		}
	}
}
